//
//  HMHomeCommanLayOut.m
//  HowToDo
//
//  Created by 胡坤 on 2017/1/5.
//  Copyright © 2017年 KY. All rights reserved.
//

#import "HMHomeCommanLayOut.h"

@implementation HMHomeCommanLayOut

- (void)prepareLayout
{
    [super prepareLayout];
    self.scrollDirection = UICollectionViewScrollDirectionVertical;
    CGFloat width =  self.collectionView.bounds.size.width;
    CGFloat height = self.collectionView.bounds.size.height;
    CGFloat margin = 60;
    self.itemSize = CGSizeMake((width - margin)/3, height - 20);
    self.collectionView.scrollEnabled = NO;
    self.collectionView.contentInset = UIEdgeInsetsMake(10, 20, 0, 20);
    self.minimumLineSpacing = 10;
    self.minimumInteritemSpacing = 10;
}

@end
